package com.example.blog.service;

import com.example.blog.dto.UserDTO;
import com.example.blog.pojo.User;

import java.time.LocalDateTime;

public interface UserService {


    //查询用户
    User findByUserName(String username);

    User findByUserId(Integer id);

    boolean updateUser(String nickname,String signature,String email);

    //用户注册
    boolean register(String username, String password, String nickname, LocalDateTime createtime, LocalDateTime updatetime);

    boolean updatePwd(String newPwd);

    boolean updateAvatar(String url);

    UserDTO findByotherId(Integer id);

}
